package com.kaifamiao.www.demo.do0908;
import com.mysql.cj.jdbc.MysqlDataSource;
import org.apache.commons.dbutils.QueryRunner;

public class demo {
    public static void main(String[] args) {
        String url = "jdbc:mysql://localhost:3306/kfm";
        String user = "root";
        String password = "";
        MysqlDataSource dataSource = new MysqlDataSource();
        dataSource.setURL(url);
        dataSource.setUser(user);
        dataSource.setPassword(password);

        String sql = "select * from emp";
        QueryRunner runner = new QueryRunner(dataSource);
        }
}
